home *** CD-ROM | disk | FTP | other *** search
- package ui
- {
- import flash.display.MovieClip;
-
- public class Section extends MovieClip
- {
-
-
- protected var _vis:Boolean = false;
-
- public function Section()
- {
- _vis = false;
- super();
- this.alpha = 0;
- this.visible = false;
- }
-
- protected function onSectionEnterFrame() : *
- {
- if(_vis)
- {
- this.alpha += (1 - this.alpha) * 0.25;
- this.visible = true;
- }
- else
- {
- this.alpha += (0 - this.alpha) * 0.25;
- if(this.alpha < 0.002)
- {
- this.visible = false;
- }
- }
- }
-
- public function hideSection() : *
- {
- _vis = false;
- }
-
- public function showSection() : *
- {
- _vis = true;
- }
- }
- }
-